package com.vrv.app.cyberspace.common.content;

/**
 * @Author：LJ
 * @Description：
 * @Date: 2017/12/21
 * @Modified By:
 */
public enum InfoType {
    NULL(-1),
    INFO(1), RISK(2),

    EVENT(3);

    private int value;

    InfoType(int value) {
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public static InfoType create(Integer value) {
        for (InfoType r : InfoType.values()) {
            if (r.getValue() == value) {
                return r;
            }
        }
        return NULL;
    }
}
